package crontab

import (
	"log/slog"
	"quant/backend/service"
)

const (
	SectorAStock = "沪深A股"
)

// preMarketJob 开盘前定时执行任务
func preMarketJob(strDate string) {
	var marketService = service.NewMarketService()
	data, err := marketService.GetMarketData(strDate, strDate)
	if err != nil {
		slog.Error("获取行情数据失败", "错误", err)
	}
	slog.Info("获取行情数据成功", "数据", data)

}
